<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>个人博客</title>
<script type="text/javascript" src="/Public/js/loader.js">
	
</script>
<script type="text/javascript">

	App.loadCss([
		'/Public/css/flex.css'
		,'/Public/css/index.css'
		,'/Public/css/theme.css'
		//,'/Public/css/pre.css'
		//,'//at.alicdn.com/t/font_u6qcem3ktbhp8pvi.css'
		]);
</script>
<link rel="stylesheet" type="text/css" href="/Public/plugin/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css">
<script type="text/javascript" src="/Public/plugin/ueditor/third-party/SyntaxHighlighter/shCore.js"></script>
</head>
<body>
<header class="header">
    <div class="bg" style="">
    	<div class="site-title">
    		梦想盒子
    	</div>
    </div>

	<nav class="nav-theme">
		<ul class="nav nav-box" flex="main:left" style="position:relative">
		<!-- <li class="ll" style="position: absolute;
    width: 100px;
    height: 2px;
    background: Red;
    bottom: 0;
    left: 0;">
			
		</li> -->
		<li class="item  <?php echo CONTROLLER_NAME=="Index"?'cur':'';?>"><a href="<?php echo U('Index/Index');?>">首页</a></li>

		<li class="item <?php echo CONTROLLER_NAME=="Category"?'cur':'';?>"><a href="<?php echo U('Category/Index');?>">分类</a></li>

		<li class="item <?php echo CONTROLLER_NAME=="Article"?'cur':'';?>"><a href="<?php echo U('Article/Index');?>">文章</a></li>

		<li class="item <?php echo CONTROLLER_NAME=="About"?'cur':'';?>"><a href="<?php echo U('About/Index');?>">关于</a></li>
		</ul>
	</nav>
</header>
<section flex="main:left" class="content">
	<section class="content-left">
		<div class="sidebar-block">
			<h3 class="list-title">我的随笔</h3>
			
<?php echo W('Article/essays');?>
			
		</div>
		<div class="sidebar-block">
			<h3 class="list-title">我的分类</h3>
			
				<?php echo W('Article/category',array('0','t1'));?>
			
		</div>
	</section>
	<section class="content-right">
	

	
		<div class="category-box">

			<div class="title" flex="main:justify cross:center">
			    <span>分类列表</span>
				<a class="btn" href="<?php echo U('Save');?>">
<i class="iconfont icon-new1"></i>
				新建</a>
			</div>
			<div>
				
			</div>
			<div class="category-detail">
		<ul class="category-list">
	
	<?php if(is_array($items)): foreach($items as $key=>$item): ?><li class="item" flex="main:justify cross:center">
<a href="<?php echo U('Article/Index',array('cid'=>$item['id']));?>">
<?php echo ($item["title"]); ?>
</a>

<div>
<a class="btn btn-edit" href="<?php echo U('Save',array('id'=>$item['id']));?>" ><i class="iconfont icon-edit"></i>编辑</a>
<a class="delete btn btn-edit" href="<?php echo U('Del',array('id'=>$item['id']));?>" ><i class="iconfont icon-del"></i>删除</a>
</div>
</li><?php endforeach; endif; ?>
	
	</ul>
			</div>
		</div>



	
		</section>
</section>
<footer class="footer">
	Copyright ©2016 lsdfly
</footer>
<script id="_main" type="text/javascript" 
data-index="/Public/Js/Module/<?php echo CONTROLLER_NAME;?>.js"
src="/Public/js/libs/require/require.js"
data-main="/Public/js/main.js"

></script>

</body>

</html>